package com.example.backend.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.backend.entity.DiZhi;

import java.util.List;

public interface IDiZhiService {
    /**新增地址*/
    boolean addDiZhi(DiZhi diZhi);
    /**删除地址*/
    boolean deleteDiZhi(int dzid);
    /**修改地址*/
    boolean updateDiZhi(DiZhi diZhi);
    /**根据地址id查询地址*/
    DiZhi queryDiZhiById(int dzid);
    /**查询所有地址*/
    List<DiZhi> queryDiZhi();

    Page<DiZhi> queryDiZhiByPage(DiZhi diZhi, Integer page, Integer size, String sortField, String sortOrder);

    List<DiZhi> queryDizhiByYHId(Integer yhid);
}
